<?php
namespace app\index\model;

use think\model;

class Memberfriend extends Model{
    // 定义表名和主键
    protected $table = 'ecm_user_friend';
    protected $pk = 'user_id';
    // 获取单个用户信息
    public static function getMembers($user_id){
        return self::find($user_id);
    }
}